import request from '@/utils/request'
export default{
  //根据videoId查询小节
  getVideoById(videoId){
    return request({
      // url: '/eduservice/teacher/pageTeacherCondition/'+current+"/"+limit,
      url: `/eduservice/video/getVideoById/${videoId}`,
      method: 'get',
    })
  },
  //添加小节
  addVideo(video){
    return request({
      // url: '/eduservice/teacher/pageTeacherCondition/'+current+"/"+limit,
      url: `/eduservice/video/addVideo`,
      method: 'post',
      data: video
    })
  },
//修改章节
  updateVideo(video) {
    return request({
      url: `/eduservice/video/updateVideo`,
      method: `post`,
      data: video
    })
  },
  //删除章节
  deleteVideo(VideoId){
    return request({
      // url: '/eduservice/teacher/pageTeacherCondition/'+current+"/"+limit,
      url: `/eduservice/video/deleteVideo/${VideoId}`,
      method: 'delete',
    })
  },
  //删除视频
  deleteAlyVideo(id){
    return request({
      // url: '/eduservice/teacher/pageTeacherCondition/'+current+"/"+limit,
      url: `/eduvod/video/removeAlyVideo/${id}`,
      method: 'delete',
    })
  },
}
